package org.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import io.swagger.models.auth.In;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;
import org.example.entity.Order;

import java.util.List;

@Mapper
public interface OrderMapper extends BaseMapper<Order> {
    List<Order> getOrderList(@Param("id") Integer id,@Param("type") Integer type);

    Integer insertOrder(@Param("order") Order order);

    Order getOrderById(String orderNumber);

    Integer updateOrderById(@Param("order") Order order);

    //添加景点订单
    Integer insertScenicOrder(@Param("uid") Integer uid,@Param("orderNumber") Long orderNumber,@Param("orderName") String orderName,@Param("price") double price);

}
